package com.zyl.blog.processing.model;

import com.alibaba.excel.write.handler.WriteHandler;
import com.alibaba.excel.write.metadata.style.WriteCellStyle;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * @version v1.0
 * @ProjectName: Personal_Blog_Server
 * @Package: com.zyl.blog.processing.model
 * @ClassName: ExcelWriteConfig
 * @Description: Excel导出配置类
 * @Author FinalFantasy
 * @Date 2025/8/14-13:12
 */
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class ExcelWriteConfig {
    /**
     * 工作表编号（0开始）
     */
    private Integer sheetNo;

    /**
     * 工作表名称
     */
    private String sheetName;

    /**
     * 表头样式
     */
    private WriteCellStyle headStyle;

    /**
     * 内容样式
     */
    private WriteCellStyle contentStyle;

    /**
     * 写入处理器，用于自定义样式、格式等
     */
    private WriteHandler writeHandler;

    /**
     * 是否自动适配列宽
     */
    private boolean autoWidth = false;

    /**
     * 是否忽略空值
     */
    private boolean ignoreEmptyRow = true;
}
